package com.chy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 员工实体
 */
@Data
public class User extends BaseEntity implements Serializable {

//    private static final long serialVersionUID = 1L;

    // 转字符串
//    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer status;

//    private Integer deleted;

    private Integer isSuperAdmin;

    private Integer isAdmin;

    private Integer authRange;

    private Integer sort;

//    @TableField(fill = FieldFill.INSERT)
////    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//    private LocalDateTime createTime;
//
//    @TableField(fill = FieldFill.INSERT_UPDATE)
////    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//    private LocalDateTime updateTime;
//
//    @TableField(fill = FieldFill.INSERT)
//    private Long createUser;
////
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private Long updateUser;

}
